package com.bestcem.xm.member.grpc.service.param.openplatform;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * 更新
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/12/21 10:52
 */
@Getter
@Setter
@ToString
public class UpsertLabelParam {
    /**
     * 标签id
     */
    @Pattern(regexp = RegTypes.NULLABLE_OBJECT_ID, message = "标签id错误")
    private String labelId;

    /**
     * 标签名称
     */
    @NotBlank(message = "标签名称不能为空")
    private String labelName;

    /**
     * 标签组名称
     */
    private String labelGroupName;

    /**
     * 标签值名称
     */
    @NotEmpty(message = "标签值名称不能为空")
    @Valid
    private List<@NotBlank(message = "标签值名称不能为空")  String> labelValueNames;
}
